import { QueryListVo } from 'src/vo/query.list.vo';
import { QueryVo } from 'src/vo/query.vo';
import { ApiProperty } from '@nestjs/swagger';

export class PostResVo extends QueryVo {
  @ApiProperty({ description: '文章标题' })
  title: string;

  @ApiProperty({ description: '分类id' })
  categoryId: number;

  @ApiProperty({ description: '标签id' })
  tagIds: any

  @ApiProperty({ description: '文章内容' })
  content: string;

  @ApiProperty({ description: '浏览数' })
  lookCount: number;
  
  @ApiProperty({ description: '点赞数' })
  likeCount: number;

  @ApiProperty({ description: '收藏数' })
  collectCount: number;

}
export class PostListVo extends QueryListVo {
  @ApiProperty({ description: '返回数据列表', type: PostResVo, isArray: true })
  posts: PostResVo[];
}
export class PostListDetailVo{
  @ApiProperty({ description: '返回数据列表', type: PostResVo, isArray: true })
  data: string;
}
